﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.mssql
{
	// Token: 0x0200017D RID: 381
	public class TMssqlOpen : TCustomSqlStatement
	{
		// Token: 0x06000D4D RID: 3405 RVA: 0x003088C1 File Offset: 0x00306AC1
		public TMssqlOpen(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstmssqlopen;
		}

		// Token: 0x06000D4E RID: 3406 RVA: 0x003088D5 File Offset: 0x00306AD5
		internal override void buildsql()
		{
		}

		// Token: 0x06000D4F RID: 3407 RVA: 0x003088D7 File Offset: 0x00306AD7
		internal override void clear()
		{
		}

		// Token: 0x06000D50 RID: 3408 RVA: 0x003088D9 File Offset: 0x00306AD9
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x06000D51 RID: 3409 RVA: 0x003088E0 File Offset: 0x00306AE0
		internal virtual void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x06000D52 RID: 3410 RVA: 0x003088E4 File Offset: 0x00306AE4
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			TOpenSqlNode topenSqlNode = (TOpenSqlNode)this.rootNode;
			base.doParseStatement(psql);
			this.cursorName = topenSqlNode.CursorName;
			return 0;
		}

		// Token: 0x06000D53 RID: 3411 RVA: 0x0030891C File Offset: 0x00306B1C
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000D54 RID: 3412 RVA: 0x0030892C File Offset: 0x00306B2C
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x1700026F RID: 623
		// (get) Token: 0x06000D55 RID: 3413 RVA: 0x0030893C File Offset: 0x00306B3C
		// (set) Token: 0x06000D56 RID: 3414 RVA: 0x00308944 File Offset: 0x00306B44
		public virtual TObjectName CursorName
		{
			get
			{
				return this.cursorName;
			}
			set
			{
				this.cursorName = value;
			}
		}

		// Token: 0x04001307 RID: 4871
		private TObjectName cursorName;
	}
}
